﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Popup.Master" CodeBehind="ProvincePopup.aspx.cs"
    Inherits="VSM.ProvincePopup" EnableEventValidation="false" Title="Customers"%>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                Filter
                <asp:TextBox runat="server" ID="txtSearch"></asp:TextBox>
                <asp:Button runat="server" ID="btnSearch" OnClick="btnSearch_Click" Text="..." Style="background-image: url('/Images/bgButton.png');
                    background-repeat: no-repeat;" />
                <div style="height: 480px; overflow: scroll">
                    <table style="width: 100%; border: 1px;" cellpadding="3" cellspacing="0">
                        <tr>
                            <td colspan="2" style="text-align: center;">
                                <asp:GridView ID="grdBP" runat="server" CssClass="GridInner" Width="100%" BorderColor="White"
                                    BackColor="White" AllowSorting="True" AutoGenerateColumns="False" 
                                    CellPadding="2" AllowPaging="True" PageSize="20"
                                    HeaderStyle-Height="27px" onrowdatabound="grdBP_RowDataBound" 
                                    onselectedindexchanged="grdBP_SelectedIndexChanged" 
                                    onpageindexchanging="grdBP_PageIndexChanging">
                                    <RowStyle BackColor="#D9E0ED" ForeColor="Black" BorderColor="White" BorderWidth="2px"
                                        Height="25px" />
                                    <AlternatingRowStyle BackColor="#EEF1F7" BorderColor="White" BorderWidth="2px" Height="25px" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="Code" >
                                            <ItemStyle HorizontalAlign="Center" Width="30%" />
                                            <HeaderStyle VerticalAlign="Middle" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblCode" runat="server" Text='<%# Bind("Code") %>' BorderStyle="none" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Name" SortExpression="Name">
                                            <ItemStyle HorizontalAlign="left" Width="70%" />
                                            <HeaderStyle VerticalAlign="Middle" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblName" runat="server" Text='<%# Bind("Name") %>' BorderStyle="none">
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerStyle BackColor="#CCCCCC" HorizontalAlign="Center" Font-Bold="True" />
                                    <SelectedRowStyle Font-Bold="true" ForeColor="Red" />
                                    <HeaderStyle BackColor="#6095C9" Font-Bold="true" ForeColor="#ffffff" Font-Overline="False" Height="27px" VerticalAlign="Bottom" />
                                    <EmptyDataTemplate>
                                        No Data Found.
                                    </EmptyDataTemplate>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </div>
                 <asp:Timer ID="Timer1" runat="server" Interval="1" OnTick="Timer1_Tick" />
                <asp:Button ID="btnAccept" runat="server" Text="OK" OnClick="btnAccept_Click" Style="background-image: url('/Images/bgButton.png');
                    background-repeat: no-repeat;" Width="80px" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
